aboutsummaryrefslogtreecommitdiff
path: root/src/routes/user/[user]/+page.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/user/[user]/+page.svelte')
-rw-r--r--src/routes/user/[user]/+page.svelte2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/user/[user]/+page.svelte b/src/routes/user/[user]/+page.svelte
index 186b53c3..4152c9f4 100644
--- a/src/routes/user/[user]/+page.svelte
+++ b/src/routes/user/[user]/+page.svelte
@@ -70,7 +70,7 @@
const categories = preferences.pinned_badge_wall_categories;
const draggedIndex = categories.indexOf(draggedCategory);
- const targetIndex = categories.indexOf(category);
+ const targetIndex = categories.indexOf(category || '');
categories.splice(draggedIndex, 1);
categories.splice(targetIndex, 0, draggedCategory);